package com.entity;

/**
 * Author: foshou.zhang
 * Date : 2016/3/6 0006
 * Time :下午 4:01
 * 用户类 --包括用户和管理员
 */
public class User {
    private Integer id;
    private String username;//用户名
    private String password;//密码
    private Integer category; //分类--用户是1，管理员为2

    public User() {
    }

    public User(Integer category, String password, String username) {
        this.category = category;
        this.password = password;
        this.username = username;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public Integer getId() {
        return id;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public Integer getCategory() {
        return category;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", category=" + category +
                '}';
    }
}
